const { mock } = require("mockjs")
const path = require("path")
function resolve(dir){
    return path.join(__dirname,dir)
}
module.exports={
    //关闭eslint
    lintOnSave:false,
    //开发服务器（静态资源服务器）
    devServer:{
        //代理服务器，
        proxy:{
            "/api":{
                target:"http://182.92.128.115"
            }
        }
    },
    //编写webpackde 原生配置
    configureWebpack:{
        //定义import规范
        resolve:{
            alias:{//别名
                components:resolve("src/components"),
                http:resolve("src/http"),
                pages:resolve("src/pages"),
                router:resolve("src/router"),
                routes:resolve("src/routes"),
                store:resolve("src/store"),
                mock:resolve("src/mock")
            }
        }
    }
}